import request from '@/router/axios';

export const getList = (page,limit, params) => {
  return request({
    // url: '/api/school-service/jxgy/list',
    url: '/api/ManageClassRoom/GetClassRoomList',
    method: 'get',
    params: {
      ...params,
      page,
      limit,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/school-service/jxgy/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (row) => {
  return request({
    url: '/api/ManageClassRoom/DelClassRoom',
    method: 'post',
    data: row
  })
}

export const add = (row) => {
  return request({
    url: '/api/ManageClassRoom/AddorEditClassRoom',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/ManageClassRoom/AddorEditClassRoom',
    method: 'post',
    data: row
  })
}

